use crate::common::AppState;
use crate::handler::chat::handler::{add_chat, get_chat_list};
use axum::routing::post;
use axum::Router;
use std::sync::Arc;

pub fn get_router(app_state: Arc<AppState>) -> Router<Arc<AppState>> {
    Router::new()
        .route("/add", post(add_chat))
        .route("/list", post(get_chat_list))
        .with_state(app_state)
}
